﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000E1D RID: 3613
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class ReserveStaminaExchangeScRsp : IMessage<ReserveStaminaExchangeScRsp>, IMessage, IEquatable<ReserveStaminaExchangeScRsp>, IDeepCloneable<ReserveStaminaExchangeScRsp>, IBufferMessage
	{
		// Token: 0x17002DEE RID: 11758
		// (get) Token: 0x0600A242 RID: 41538 RVA: 0x001B22DD File Offset: 0x001B04DD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<ReserveStaminaExchangeScRsp> Parser
		{
			get
			{
				return ReserveStaminaExchangeScRsp._parser;
			}
		}

		// Token: 0x17002DEF RID: 11759
		// (get) Token: 0x0600A243 RID: 41539 RVA: 0x001B22E4 File Offset: 0x001B04E4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return ReserveStaminaExchangeScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17002DF0 RID: 11760
		// (get) Token: 0x0600A244 RID: 41540 RVA: 0x001B22F6 File Offset: 0x001B04F6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return ReserveStaminaExchangeScRsp.Descriptor;
			}
		}

		// Token: 0x0600A245 RID: 41541 RVA: 0x001B22FD File Offset: 0x001B04FD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ReserveStaminaExchangeScRsp()
		{
		}

		// Token: 0x0600A246 RID: 41542 RVA: 0x001B2305 File Offset: 0x001B0505
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ReserveStaminaExchangeScRsp(ReserveStaminaExchangeScRsp other) : this()
		{
			this.num_ = other.num_;
			this.retcode_ = other.retcode_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600A247 RID: 41543 RVA: 0x001B2336 File Offset: 0x001B0536
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ReserveStaminaExchangeScRsp Clone()
		{
			return new ReserveStaminaExchangeScRsp(this);
		}

		// Token: 0x17002DF1 RID: 11761
		// (get) Token: 0x0600A248 RID: 41544 RVA: 0x001B233E File Offset: 0x001B053E
		// (set) Token: 0x0600A249 RID: 41545 RVA: 0x001B2346 File Offset: 0x001B0546
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Num
		{
			get
			{
				return this.num_;
			}
			set
			{
				this.num_ = value;
			}
		}

		// Token: 0x17002DF2 RID: 11762
		// (get) Token: 0x0600A24A RID: 41546 RVA: 0x001B234F File Offset: 0x001B054F
		// (set) Token: 0x0600A24B RID: 41547 RVA: 0x001B2357 File Offset: 0x001B0557
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x0600A24C RID: 41548 RVA: 0x001B2360 File Offset: 0x001B0560
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as ReserveStaminaExchangeScRsp);
		}

		// Token: 0x0600A24D RID: 41549 RVA: 0x001B236E File Offset: 0x001B056E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(ReserveStaminaExchangeScRsp other)
		{
			return other != null && (other == this || (this.Num == other.Num && this.Retcode == other.Retcode && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600A24E RID: 41550 RVA: 0x001B23AC File Offset: 0x001B05AC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Num != 0U)
			{
				num ^= this.Num.GetHashCode();
			}
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600A24F RID: 41551 RVA: 0x001B2404 File Offset: 0x001B0604
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600A250 RID: 41552 RVA: 0x001B240C File Offset: 0x001B060C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600A251 RID: 41553 RVA: 0x001B2418 File Offset: 0x001B0618
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Num != 0U)
			{
				output.WriteRawTag(88);
				output.WriteUInt32(this.Num);
			}
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(120);
				output.WriteUInt32(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600A252 RID: 41554 RVA: 0x001B2474 File Offset: 0x001B0674
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Num != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Num);
			}
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600A253 RID: 41555 RVA: 0x001B24CC File Offset: 0x001B06CC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(ReserveStaminaExchangeScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Num != 0U)
			{
				this.Num = other.Num;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600A254 RID: 41556 RVA: 0x001B251C File Offset: 0x001B071C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600A255 RID: 41557 RVA: 0x001B2528 File Offset: 0x001B0728
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 88U)
				{
					if (num != 120U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.Retcode = input.ReadUInt32();
					}
				}
				else
				{
					this.Num = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04003EB0 RID: 16048
		private static readonly MessageParser<ReserveStaminaExchangeScRsp> _parser = new MessageParser<ReserveStaminaExchangeScRsp>(() => new ReserveStaminaExchangeScRsp());

		// Token: 0x04003EB1 RID: 16049
		private UnknownFieldSet _unknownFields;

		// Token: 0x04003EB2 RID: 16050
		public const int NumFieldNumber = 11;

		// Token: 0x04003EB3 RID: 16051
		private uint num_;

		// Token: 0x04003EB4 RID: 16052
		public const int RetcodeFieldNumber = 15;

		// Token: 0x04003EB5 RID: 16053
		private uint retcode_;
	}
}
